<%@page import="com.shoeshopping.entity.User"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";

	User user = ((User) session.getAttribute("user"));
	String username = null;
	if (user != null) {
		username = user.getUsername();
	}
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>修改个人信息</title>
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
</script>
<!----webfonts---->
<link href='css/css.css?family=Open+Sans:400,300,600,700,800'
	rel='stylesheet' type='text/css'></link>
<!----//webfonts---->
<script src="js/jquery.min.js"></script>
<!----start-alert-scroller---->
<script type="text/javascript" src="js/jquery.easy-ticker.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('#demo').hide();
		$('.vticker').easyTicker();
	});
</script>
<!----start-alert-scroller---->
<!-- start menu -->
<link href="css/megamenu.css" rel="stylesheet" type="text/css"
	media="all" />
<script type="text/javascript" src="js/megamenu.js"></script>
<script>
	$(document).ready(function() {
		$(".megamenu").megamenu();
	});
</script>
<script src="js/menu_jquery.js"></script>
<!-- //End menu -->
<!---move-top-top---->
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function($) {
		$(".scroll").click(function(event) {
			event.preventDefault();
			$('html,body').animate({
				scrollTop : $(this.hash).offset().top
			}, 1200);
		});
	});
</script>
<style>
.container label {
	float: left;
	font-size: 0.875em;
	font-weight: 700;
	color: #08080B;
	margin-right: 20px;
}

.container p {
	float: left;
}

.row {
	height: 30px;
	margin: 20px;
}
</style>
</head>
<body>
	<!---start-wrap---->
	<!---start-header---->
	<div class="header">

		<%
			//jsp include进 top-header
		%>
		<jsp:include page="/component/top-header.jsp" flush="true">
			<jsp:param value='<%=username %>' name="username" />
		</jsp:include>

		<%
			//jsp include进 middle-header
		%>
		<jsp:include page="/component/middle-header.jsp" flush="true" />

		<%
			//jsp include进 middle-header
		%>
		<jsp:include page="/component/bottom-header.jsp" flush="true" />

	</div>
	<!----//End-bottom-header---->
	<!---//End-header---->
	<!--- start-content---->
	<div class="content login-box">
		<div class="login-main">
			<div class="wrap">
				<h1><a href="user/order_show" style="color: ##E45D5D;">查看订单</a></h1>
				<h1>用户信息</h1>
				<div class="container">
					<div class="row">
						<div class="col-md-3">
							<label>用户名:</label>
							<p><%=user.getUsername()%></p>
						</div>
					</div>
					<div class="row">
						<div class="col-md-3">
							<label>邮箱：</label>
							<p><%=user.getEmail()%></p>
						</div>
					</div>
				</div>
				<h1>更新用户</h1>
				<div class="register-grids">
					<form method="post" action="user_foreground/user_modify">
						<div class="register-top-grid">
							<h3>用户信息</h3>
							<div>
								<span>邮箱<label>*</label>
								</span> <input type="text" name="email">
							</div>
							<div class="clear"></div>
						</div>
						<div class="clear"></div>
						<div class="register-bottom-grid">
							<h3>登陆信息</h3>
							<div>
								<span>密码<label>*</label>
								</span> <input type="password" name="password">
							</div>

							<div class="clear"></div>
						</div>
						<div class="clear"></div>
						<div class="register-bottom-grid">
							<div>
								<span>重复密码<label>*</label>
								</span> <input type="password" name="repassword">
							</div>
						</div>
						<div class="clear"></div>
						<input type="submit" value="修改" />
					</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>

